<?php
// BUTTON
function button( $atts, $content = null ) {
	extract(shortcode_atts(array(
		'link'	=> '#',
		'tooltip'=> ''
	), $atts));
	if ($tooltip) {$tip = 'title="'.$tooltip.'"'; $toolclass = ' tooltip';};
	$out = '<a class="button'.$toolclass.'" href="'.$link.'" '.$tip.'>' .do_shortcode($content). '</a>';
	return $out; }
add_shortcode('button', 'button');

// BUTTON #2
function button2( $atts, $content = null ) {
	extract(shortcode_atts(array(
		'link'	=> '#',
		'tooltip'=> ''
	), $atts));
	if ($tooltip) {$tip = 'title="'.$tooltip.'"'; $toolclass = ' tooltip';};
	$out = '<a class="button2'.$toolclass.'" href="'.$link.'" '.$tip.'>' .do_shortcode($content). '</a>';
	return $out; }
add_shortcode('button2', 'button2');

// BUTTON #3
function button3( $atts, $content = null ) {
	extract(shortcode_atts(array(
		'link'	=> '#',
		'tooltip'=> ''
	), $atts));
	if ($tooltip) {$tip = 'title="'.$tooltip.'"'; $toolclass = ' tooltip';};
	$out = '<a class="button3'.$toolclass.'" href="'.$link.'" '.$tip.'>' .do_shortcode($content). '</a>';
	return $out; }
add_shortcode('button3', 'button3');

// BUTTON #4
function button4( $atts, $content = null ) {
	extract(shortcode_atts(array(
		'link'	=> '#',
		'tooltip'=> ''
	), $atts));
	if ($tooltip) {$tip = 'title="'.$tooltip.'"'; $toolclass = ' tooltip';};
	$out = '<a class="button4'.$toolclass.'" href="'.$link.'" '.$tip.'>' .do_shortcode($content). '</a>';
	return $out; }
add_shortcode('button4', 'button4');

// BIG BUTTON
function big_button( $atts, $content = null ) {
	extract(shortcode_atts(array(
		'link'	=> '#',
		'tooltip'=> '',
		'color'	=> '8aa43c'
	), $atts));
	if ($tooltip) {$tip = 'title="'.$tooltip.'"'; $toolclass = ' tooltip';};
	$out = '<a class="bigbutton'.$toolclass.'" style="background-color:#'.$color.'; -moz-text-shadow: -1px -1px 0 #'.$color.'; -webkit-text-shadow: -1px -1px 0 #'.$color.'; text-shadow: -1px -1px 0 #'.$color.'"; href="'.$link.'" '.$tip.'>'.do_shortcode($content).'</a>';
	return $out; }
add_shortcode('big_button', 'big_button');
?>
